package com.authine.cloudpivot.ext.conf;

import com.authine.cloudpivot.ext.util.PmUtil;

import java.math.BigDecimal;

/**
 * 应用全局配置
 */
public interface ApplicationConf {
    /**-------------------------------模型编码-----------------------------------*/
    //商城商品
    String GOODES = "t_goodses";
    //商城商品-商品物料
    String COMMODITYMATERIALS_GOODES = "commoditymaterials.i_commoditymaterials_t_goodses";
    //供应商商品
    String SUPPLIER_GOODS = "supplier_goods";
    //品牌
    String BRAND = "t_brand";
    //用户
    String USER = "t_user";
    //目录
    String CATALOG = "t_catalog";
    //单位
    String UNIT = "t_goods_unit";
    //税率
    String TAX_RATE = "t_goods_tax_rate";
    //购物车
    String SHOPPING_CAR = "t_shopping_car";
    //市场配置-模块
    String MARKETSETTING = "marketSetting";
    //市场配置-轮播图
    String SETTING_ROTATION_IMAGES = "setting_rotation_images";
    //供应商
    String ORGANIZATION = "t_organization";
    //客户订单
    String CUSTOMERORDER = "customerOrder";
    //客户订单-订单中心
    String I_ORDERCENTER_CUSTOMERORDER = "ordercenter.i_ordercenter_t_order_customer";
    //供应商订单
    String SUPPLIERORDER = "supplierOrder";
    //供应商商品订单
    String SUPPLIER_ORDER_GOODS = "supplier_order_goods";
    //客户商品订单
    String CUSTOMER_ORDER_GOODS = "customer_order_goods";
    //客户商品订单-订单中心
    String I_ORDERCENTER_CUSTOMER_ORDER_GOODS = "ordercenter.i_ordercenter_t_order_customer_goods";
    //客户订单商品退货表
    String REFUND = "REFUND";
    //客户订单商品退货表-订单中心
    String I_ORDERCENTER_REFUND = "ordercenter.i_ordercenter_t_order_goods_returns";
    //组织邀请关系
    String ORGANIZATION_RELATIONSHIP = "t_organization_relationship";
    //商品修改记录
    String GOODS_HISTORY = "t_goods_history";
    //收货地址
    String ADDRESS = "address";
    //个人发票
    String INVOICE = "invoice";




    /**-------------------------------文件路径下载----------------------------------*/
    String uploadFile = PmUtil.getProjectUrl().concat("/api/file/download?refId=%s");





    /**-------------------------------平台比例----------------------------------*/
    BigDecimal SHOP_PLATFORM_RATE = new BigDecimal("0.03");





    /**-------------------------------应用编码----------------------------------*/
    String orderCenter = "ordercenter";

    String systemManagement = "systemmanagement";


    /**-------------------------------邮件发送商品详情url---------------------------------*/
    String goods_detail_url = "/api/launcher/gmmarket/app_runtime/index.html#/home/gmmarket?id=%s&pageCode=gm_good_detail";





    /**-------------------------------服务调用路径----------------------------------*/
    //订单中心-确认收货
    String customerReceive = "/application/invoke?action=/CustomerDetailService/customerReceive";

    //订单中心-取消退款
    String customerCancelRefund = "/application/invoke?action=/CustomerDetailService/customerCancelRefund";

    //订单中心-申请退款
    String customerApplyRefund = "/application/invoke?action=/CustomerDetailService/customerApplyRefund";

    //订单中心-查询物流
    String queryLogistics = "/application/invoke?action=/LogisticsService/queryLogistics";

    //系统管理-报表导出
    String EXPORT_REPORT_URL = "/application/invoke?action=/ReportService/exportReport";

    //系统管理-根据用户id获取用户信息
    String GET_USER_URL = "/application/invoke?action=/UserApi/getUser";



    /**-------------------------------短信配置----------------------------------*/
    /* RegionId */
    public static final String REGION_ID = "cn-hangzhou";

    /* accessKeyID */
    public static final String ACCESS_KEY_ID = "fRjZgRrA0L745UVh";

    /* accessKeySecret */
    public static final String ACCESS_KEY_SECRET = "JxgOW52RnXvgnNmGvE9W3Gus5gbvqm";

    /* API产品域名 */
    public static final String SYS_DOMAIN = "dysmsapi.aliyuncs.com";

    /* API版本 */
    public static final String SYS_VERSION = "2017-05-25";

    /* 签名1 */
    public static final String SIGN_NAME1 = "固买云平台";

    /* 签名2 */
    public static final String SIGN_NAME2 = "固买供应链";



    /**-------------------------------邮箱配置----------------------------------*/
    /* 邮箱域名 */
    public static final String EMAIL_DOMAIN_NAME = "notify.mail.gomro.cn";

    /* 发信地址 */
    public static final String ACCOUNT_NAME = "system@notify.mail.gomro.cn";

    /* 发信人昵称1 */
    public static final String NICK_NAME1 = "固买云平台";

    /* 发信人昵称2 */
    public static final String NICK_NAME2 = "固买供应链";
}
